{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}
	<a href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}" title="{l s='Go back to the Checkout' mod='alipay'}">{l s='Checkout' mod='alipay'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Alipay payment' mod='alipay'}
{/capture}



{assign var='current_step' value='payment'}
{include file="$tpl_dir./order-steps.tpl"}

{if $nbProducts <= 0}
	<p class="warning">{l s='Your shopping cart is empty.' mod='alipay'}</p>
{else}

<h3>{l s='请核实订单' mod='alipay'}	</h3>
<br><img src="{$this_path}alipay.jpg"  height="49" style="float:left; margin: 0px 10px 5px 0px;" /><hr/>
<form action="{$link->getModuleLink('alipay', 'paymentok', [], true)|escape:'html'}" method="post">

	<p style="margin-top:20px;">
		{l s='订单总额：' mod='alipay'}
		<span id="amount" class="price">{displayPrice price=$total}</span>
	</p>
	<p style="margin-top:20px;">
		{l s='目前仅支持人民币支付' mod='alipay'}
		{if $currencies|@count > 1}
			
		{else}
			{l s='你所选择的币种：' mod='alipay'}&nbsp;<b>{$currencies.0.name}</b>
			
		{/if}
	</p>
	<input id="WIDout_trade_no" name="WIDout_trade_no" value="{$WIDout_trade_no}" type="hidden" />
	<input id="WIDsubject" name="WIDsubject" type="hidden" value="{$WIDsubject}"/>
	<input id="WIDtotal_amount" type="hidden" name="WIDtotal_amount" value="{$total}"/>
	<input id="WIDbody" type="hidden" name="WIDbody" value="{$text}"/>

	<p class="cart_navigation" id="cart_navigation">
		<input type="submit" value="{l s='去支付' mod='alipay'}" class="exclusive_large" />
		<a href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html'}" class="button_large">{l s='选择其他支付方式' mod='alipay'}</a>
	</p>

</form>
{/if}
